package com.css.dzj.dzjap.modules.info.service;

import com.css.dzj.dzjap.modules.construnit.entity.ConstructionUnitEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.HashMap;

/**
 * @author liangxingguo
 */
@Service
public interface ConstrService {

      QueryResults<ConstructionUnitEntity> getPage(
              Pageable pageRequest, String entName, String  uniScid, String startTime, String endTime, String createPerson, HttpServletRequest request);

      boolean delConstr(String id);

      void update(ConstructionUnitEntity constructionUnitEntity);

      ConstructionUnitEntity findById(String id);

      QueryResults<ConstructionUnitEntity>  getPageConstr(Pageable pageable,String enterpriseName,String enterpriseIdNumber);

      /***
       * 根据用户名查找统一信用代码
       * @param userName
       * @return
       */
      String findUnitCode(String userName);

      HashMap getCount();
      HashMap getCountByYear(String year);

}
